# IBM InfoPrint Client ebuild 
# Created by Scott Richey <srichey@us.ibm.com>

DESCRIPTION="InfoPrint command-line client for linux. Not for external distribution."
SRC_URI="ftp://dsse.con.can.ibm.com/gentoo/distfiles/pdcmd-0.2-5.i386.rpm"
HOMEPAGE="http://w3.opensource.ibm.com/~gentoo-ebuilds"
DEPEND="app-arch/rpm"
RDEPEND="${DEPEND}"
LICENSE="IBM Internal"
IUSE=""
KEYWORDS="x86"

src_unpack() {
	rpm2cpio ${DISTDIR}/${A} | cpio -i --make-directories

}

src_install() {
	cd ${WORKDIR}
	mv usr/doc/PDcmd/ usr/doc/ipm-client-0.2.5/
	cp -R usr/ ${D}/
}

pkg_postinst() {
	einfo ""
	einfo "InfoPrint command-line client has been installed."
	einfo "Remeber you must have your PDHOST and PD_SOCKET vars"
	einfo "set."
	einfo ""
}
